package com.scu.hotelsystem.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Guest {

    private int id;
    private String name;
    private String phone;
    private char gender;
    private Date add_time;
    private int is_vip;
    private String resd_id;
    private int tag;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    @DateTimeFormat(pattern = "yyyy-MM-DD")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")

    public Date getAdd_time() {
        return add_time;
    }

    public void setAdd_time(Date add_time) {
        this.add_time = add_time;
    }

    public int getIs_vip() {
        return is_vip;
    }

    public void setIs_vip(int is_vip) {
        this.is_vip = is_vip;
    }

    public String getResd_id() {
        return resd_id;
    }

    public void setResd_id(String resd_id) {
        this.resd_id = resd_id;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }
}
